<?php
namespace Admin\Model;
use Think\Model;

//++++++++++++++无限级分类++++++++++++++

class HelloModel extends Model { 
  		 
       public function getHello(){
        $av = $this->table(array('hello'=>'h','type'=>'t','goods'=>'g'))->field('h.*,h.id hid,t.name,t.id idm,g.*')->where('h.typeid=t.id AND  h.goodsid = g.id ')->select();
        foreach($av as $key => $val){
            date_default_timezone_set("PRC");  //设置中国时区
            $as[$key]['addtime'] = date('Y-m-d H:i:s',$val['addtime']);
          }
          return $av;

       }

      	

      
  }